package com.fitness.service.impl;


import com.fitness.entity.PostEntity;
import com.fitness.mapper.PostMapper;
import com.fitness.service.PostService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PostServiceImpl implements PostService {

    @Resource // @Autowire
    private PostMapper postMapper;

    @Override
    public List<PostEntity> list(Long id) {
        return postMapper.list(id);
    }
}
